<?php
namespace Mobile\Controller;
class ZxbkController extends PublicController{
	function list(){
	    $bklistOb = M("Baikelist");
	    $arr = $bklistOb->limit(4)->select();
	    $arr1 = $bklistOb->where("bid=13")->limit(4)->select();
	    $arr2 = $bklistOb->where("bid=17")->limit(4)->select();
	    $arr3 = $bklistOb->where("bid=12")->limit(4)->select();
	    $this->assign('arr3',$arr3);
	    $this->assign('arr2',$arr2);
	    $this->assign('arr',$arr);
	    $this->assign('arr1',$arr1);
	    $this->tit();
		$this->display();
	}
	function deatil(){
		$deatilOb = M("Baikelist");
		$id=$_GET["id"];
		$arr = $deatilOb->where("id=$id")->find();
		$this->assign('arr',$arr);
		$bk = M("Baike");
		$bid=$arr["bid"];
		$fenlei = $bk->where("fid=$bid")->find();
		$this->assign('fenlei',$fenlei);
		$this->tit();
		$this->display();
	}
	function fenlei(){
		$bklistOb = M("Baikelist");
		$bid=$_GET["fid"];
		$arr = $bklistOb->where("bid=$bid")->limit(6)->select();
		$this->assign('arr',$arr);
		$this->tit();
		$this->display();
	}
}